[BLKTAP] Remove unnecessary timeout from tapdisk select() call.
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Fri, 29 Sep 2006 10:16:52 +0000 (11:16 +0100)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Fri, 29 Sep 2006 10:16:52 +0000 (11:16 +0100)
commit80550dad577bec47979ff6057dac92f9c7503a37
tree12cd1918a2e555ee02ec955a608e4247230396d4
parent90e86a9d216c8ae526fbc9ee3ee260814dfd91da
[BLKTAP] Remove unnecessary timeout from tapdisk select() call.

tapdisk was using a 1msec select() timeout in its main event loop.  On
timeout, the loop does nothing except repeat, so the timeout achieves
nothing; worse, on a machine with HZ set to less than 1000, a msec
timeout returns immediately, sending tapdisk into a 100%-CPU-
utilisation loop.

Simply remove the timeout entirely; everything still works fine, and
much more efficiently when idle.

Signed-off-by: Stephen Tweedie <sct@redhat.com>
tools/blktap/drivers/tapdisk.c